import { createRouter, createWebHistory } from 'vue-router'
import Auth from '../views/Auth.vue'
import HomePage from '../views/HomePage.vue'
import SearchPage from '../views/Search.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'RegisterAndLogin',
      component: Auth
    },
    { path: '/homepage', 
      name: 'HomePage',
      component: HomePage 
    },
    { path: '/search', 
      name: 'SearchPage',
      component: SearchPage 
    }
  ]
})

export default router
